package com.talent.web.enums;

/**
 * @ClassName：OrderStatus
 * @Author: hszhou
 * @Date: 2025/3/24 12:59
 * @Description: 订单状态
 */
public enum OrderStatus {

    /**
     * 未支付
     */
    UNPAID(0, "未支付"),
    /**
     * 已支付
     */
    PAID(1, "已支付"),
    /**
     * 已取消
     */
    CANCELLED(2, "已取消"),
    /**
     * 退款中
     */
    REFUNDING(3, "退款中"),
    /**
     * 已退款
     */
    REFUNDED(4, "已退款"),
    ;

    private final Integer code;
    private final String message;

    OrderStatus(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }
}
